package com.jade.shoesmallinterface.service.impl;

import com.jade.shoesmallinterface.entity.ProductImage;
import com.jade.shoesmallinterface.mapper.productImageMapper;
import com.jade.shoesmallinterface.service.productImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class productImageServiceIml implements productImageService {
    @Autowired
    private productImageMapper productImageMapper;

    @Override
    public List<ProductImage> selectImageByProductId(Integer productId) {
        return productImageMapper.selectImageByProductId(productId);
    }

    @Override
    public List<ProductImage> selectAllImage() {
        return productImageMapper.selectAllImage();
    }
}
